Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

[Dynamic Dashboard] Fetch orders #3008

Merged
merged 2 commits into from
May 10, 2024

Conversation

0nko
Copy link
Contributor

@0nko 0nko commented May 10, 2024

Implements woocommerce/woocommerce-android#11462. This PR adds a way to add to fetch orders using coroutines without deleting the existing data.

To test:
Please test the associated WCAndroid PR.

@0nko 0nko requested a review from hichamboushaba May 10, 2024 11:59
@hichamboushaba hichamboushaba self-assigned this May 10, 2024
Copy link
Member

@hichamboushaba hichamboushaba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work @0nko, I left a minor np, but feel free to ignore it.

orderBy: OrderBy = OrderBy.DATE,
sortOrder: SortOrder = SortOrder.DESCENDING,
statusFilter: String? = null,
deleteOldData: Boolean = false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor np, I suggest setting this to be page == 1 just to make it more suitable for any pagination by default, it's not something we need, but it could be more clear for any other usages in the future, WDYT?

@0nko 0nko merged commit 8d0c501 into trunk May 10, 2024
14 checks passed
@0nko 0nko deleted the woo/fetch-without-deleting-existing-orders branch May 10, 2024 15:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants